<?php  define('IN_DAEM', true); include '../includes/init.php'; $userAry = get_user_realname(); $sid = $_GET['sid']; if (!empty($sid)) { $sql = "select * from ".DB_DAEMDB.".".TB_SUFFIX."hr_student where sid = '".$sid."'"; $result = $db->query_first($sql); if (empty($result)) { gourl('未能找到该记录信息', 'hr_student_info.php'); } $courseRecordDataAry = array(); $sql = "select * from ".DB_DAEMDB.".".TB_SUFFIX."hr_student_enroll_record where sid = '".$sid."'"; $query = $db->query($sql); while ($row = $db->fetch_array($query)) { $courseRecordDataAry[] = $row; } } include template(); 